package com.example.myapplication;

import android.app.Application;

public class MyApplication extends Application {
    public static User mUser;

    public static User getMyUser() {
        if (mUser == null) {
            mUser = new User(1, "张三", "123456");
        }
        return mUser;
    }

    @Override
    public void onCreate() {
        super.onCreate();
    }


    public static void setAccount(User user) {
        mUser = user;
    }
}
